package net.lesscoding.shop.exception;

import lombok.extern.slf4j.Slf4j;
import net.lesscoding.shop.enums.ShopCode;

/**
 * @author eleven
 * @date 2024/6/7 16:49
 * @apiNote
 */
@Slf4j
public class CastException extends RuntimeException {
    public static void cast(ShopCode shopCode) {
        log.error(shopCode.toString());
        throw new CustomerException(shopCode);
    }

}